﻿using HZU.ZP.Data.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace HZU.ZP.Data.Interfaces
{
    public interface IMessageDao
    {
        void Add(Message message);
        void Update(Message message);
        void UpdateList(string sql);
        Message GetById(int id);
        /// <summary>
        /// 获取聊天记录
        /// </summary>
        /// <param name="fromEmail"></param>
        /// <param name="toEmail"></param>
        /// <returns></returns>
        IList<Message> GetMesList(string fromEmail, string toEmail);
        /// <summary>
        /// 获取聊天的用户列表
        /// </summary>
        /// <param name="fromEmail"></param>
        /// <param name="toId"></param>
        /// <returns></returns>
        IList<Message> GetMesUserList(string fromEmail, string toId);
    }
}
